<HTML>
 <HEAD>
 <TITLE>Tool 217: SMB/CIFS server</TITLE>
 </HEAD>
 <BODY BGCOLOR="#FFFFFF">
  <CENTER>   <H3>Tool 217: SMB/CIFS server</H3>
  </CENTER>

  <P><H3>Description:</H3>
   <PRE>
  This tool is a SMB/CIFS server. Microsoft Windows and Samba clients
  can be used to connect to this server, in order to access shared
  directory.
  
  When this tool is running, users can connect to it from Windows using
  \\1.2.3.4\share or \\server\share (might need to edit lmhost).
  
  This tool does not support filenames with accents nor with Unicode
  characters. It also has other limitations, but most users will not
  notice them (see smbser.h in source files).
  
  Parameter --rootdir defines the root directory for put and get file
  operations (cannot exit this root jail).
  Parameters --login and --password defines needed login and password.
  Parameter --allowed-clients lists the IP addresses or hosts allowed
  to connect.
  Parameter --src-port defines the local port number to listen on.
  Optional parameter --src-ip defines the local IP address to use.
  Optional parameter --iptype defines which kind of IP address to use
  when --src-ip is unset (accepted values: ip4 and ip6).
  Optional parameter --ip4opts permits to add IP4 options encoded as
  mixed.
  Optional parameter --ip6exts permits to add IP6 options encoded as
  mixed (first byte is the next header number).
  Optional parameters --device and --src-eth are not yet implemented.
  
  This tool may need to be run with admin privilege in order to listen
  on a small port number (port<1024).
   </PRE>

  <P><H3>Synonyms:</H3>
  &nbsp;&nbsp;Samba<BR>

  <P><H3>Usage:</H3>
  &nbsp;&nbsp;netwox 217 [-s smbshare] [-r dir] [-u login] [-w password] [-d device] [-E eth] [-I ip] [-P port] [-o ip4opts] [-O ip6exts] [-t iptype] [-T uint32] [-c ips] [-U|+U] [-V|+V] [-D|+D]<BR>

  <P><H3>Parameters:</H3>
<TABLE BORDER=1 CELLPADDING=4>
 <TR>
  <TD ALIGN=middle><I>parameter</I></TD>
  <TD ALIGN=middle><I>description</I></TD>
  <TD ALIGN=middle><I>example</I></TD>
 </TR>
 <TR><TD><TT>-s|--share smbshare</TD>
<TD>share name</TD>
<TD>share</TD></TR>
<TR><TD><TT>-r|--rootdir dir</TD>
<TD>root directory</TD>
<TD>/tmp</TD></TR>
<TR><TD><TT>-u|--user login</TD>
<TD>username needed to access</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-w|--password password</TD>
<TD>password needed to access</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-d|--device device</TD>
<TD>device name</TD>
<TD>Eth0</TD></TR>
<TR><TD><TT>-E|--src-eth eth</TD>
<TD>source ethernet address</TD>
<TD>0:2:3:4:5:6</TD></TR>
<TR><TD><TT>-I|--src-ip ip</TD>
<TD>source IP address</TD>
<TD>192.168.100.200</TD></TR>
<TR><TD><TT>-P|--src-port port</TD>
<TD>source port number</TD>
<TD>139</TD></TR>
<TR><TD><TT>-o|--ip4opts ip4opts</TD>
<TD>IPv4 options</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-O|--ip6exts ip6exts</TD>
<TD>IPv6 extensions</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-t|--iptype iptype</TD>
<TD>type to use when src-ip is unset</TD>
<TD>ip4</TD></TR>
<TR><TD><TT>-T|--timeout uint32</TD>
<TD>timeout in milliseconds</TD>
<TD>600000</TD></TR>
<TR><TD><TT>-c|--allowed-clients ips</TD>
<TD>clients allowed to connect</TD>
<TD>all</TD></TR>
<TR><TD><TT>-U|--allow-put|+U|--no-allow-put</TD>
<TD>allow put/write on server</TD>
<TD><I>This boolean is set.<BR>Use + or --no- to unset it.</I></TD></TR>
<TR><TD><TT>-V|--verbose|+V|--no-verbose</TD>
<TD>display SMB trace</TD>
<TD>&nbsp;</TD></TR>
<TR><TD><TT>-D|--debug|+D|--no-debug</TD>
<TD>display SMB packets</TD>
<TD>&nbsp; </TD></TR>
</TABLE>

  <P><H3>Example:</H3>
  &nbsp;&nbsp;netwox 217<BR>
<BR>
 </BODY>
 </HTML>
